package com.bdqn.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bdqn.crm.pojo.Pagee;
import com.bdqn.crm.pojo.SysUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface SysUserService extends IService<SysUser> {
    SysUser getlogin(String usrName, String usrPassword);

//    Page<SysUser> findUsers(String usrName, Long roleId, Pageable pageable);

    /**
     * 分页查找系统用户
     *
     * @param sysUser
     * @param page
     * @return
     */
    List<SysUser> getPageList(SysUser sysUser, Pagee page);

    /**
     * 根据条件获得总记录数
     *
     * @param sysUser
     * @return
     */
    int getPageListTotal(SysUser sysUser);
}
